import request from '@/utils/request'

// 查询货转费列表
export function listGoodstransfer(query) {
  return request({
    url: '/fees/goodstransfer/list',
    method: 'get',
    params: query
  })
}

// 查询货转费详细
export function getGoodstransfer(goodsTransferFeeId) {
  return request({
    url: '/fees/goodstransfer/' + goodsTransferFeeId,
    method: 'get'
  })
}

// 新增货转费
export function addGoodstransfer(data) {
  return request({
    url: '/fees/goodstransfer',
    method: 'post',
    data: data
  })
}

// 修改货转费
export function updateGoodstransfer(data) {
  return request({
    url: '/fees/goodstransfer',
    method: 'put',
    data: data
  })
}

// 删除货转费
export function delGoodstransfer(goodsTransferFeeId) {
  return request({
    url: '/fees/goodstransfer/' + goodsTransferFeeId,
    method: 'delete'
  })
}
